package com.itheima.homework.assignment.Test01;

/**
 * 定义一个Student类,其中包含三个属性:id(学号)   name(姓名)   classRoom(教室),以及构造和get/set
 */
public class Student {
    private int id;
    private String name;
    private static String classRoom;

    public Student() {
    }

    public Student(int id, String name) {
        this.id = id;
        this.name = name;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public static String getClassRoom() {
        return classRoom;
    }

    public static void setClassRoom(String classRoom) {
        Student.classRoom = classRoom;
    }
}
